fix(settings): chip-consistency + shared credential-style resource row#5308
Conversation
- chip: move default/filled hover into active-keyed compound variants so raw chipVariants({...}) renders identically to cn(chipVariants({...})); fixes sidebar/settings-sidebar active-hover divergence (no change to cn-wrapped consumers)
- integrations: 'Explore in chat' uses active chip (darkens on hover) instead of floating text
- data-retention: fold the retention-policies helper into the page description; drop the redundant wrapper
- settings: extract shared SettingsResourceRow (rounded icon tile + title/desc + trailing, icons normalized to 20px); migrate recently-deleted, byok, and credential-sets onto it; recently-deleted actions are now Chips
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview Chip ( Settings — New Data retention — The “workspaces without an override inherit org defaults” note moves from the Retention policies section into the Data retention nav subtitle in Reviewed by Cursor Bugbot for commit 8f9aeed. Configure here. |
Greptile SummaryThis PR standardizes several settings rows and chip hover states. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (1): Last reviewed commit: "fix(settings): chip-consistency + shared..." | Re-trigger Greptile |
Summary
active-keyed compound variants so each(variant, active)emits exactly onehover-hover:bg-*. RawchipVariants({...})consumers now render identically tocn(chipVariants({...}))ones — fixing the sidebar vs settings-sidebar active-hover divergence (selected rows darken on hover consistently). Verified byte-equivalent under tailwind-merge, so cn-wrapped consumers are unchanged.active(was a transparent/floating chip) so it's a filled active chip that darkens on hover.navigation.ts), dropping the redundant wrapper.SettingsResourceRow(canonical rounded icon tile + title/desc + trailing slot; force-normalizes icons to 20px) and migratedrecently-deleted,byok-key-manager, andcredential-sets(×3) onto it — eliminating copy-pasted credential-row chrome drift.recently-deleted's Restore/View actions are now Chips (no more non-chip Buttons) and its icon uses the credential-style tile.Type of Change
Testing
Tested manually.
tscclean (0 errors), biome clean across all touched files. No test asserts on chip class strings.Checklist